﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EnglishAuction.BUS;

namespace EnglishAuction
{
    public partial class UserInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["Id"] != null)
            {
                int id = int.Parse(Request.QueryString["Id"]);
                NguoiDung user = NguoiDungBUS.GetById(id);
                txtTenTaiKhoan.Text = user.TaiKhoan;
                txtCMND.Text = user.CMND;
                txtDiaChi.Text = user.DiaChi;
                txtEmail.Text = user.Email;
                txtNgaySinh.Text = user.NgaySinh.ToString();
                txtSoDienThoai.Text=user.SoDienThoai;
                txtHoTen.Text = user.HoTen;

            }
        }
    }
}